package com.hk.file;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.catalina.core.ApplicationContext;

import com.hk.action.Action;
import com.hk.action.ActionForward;

public class FileUpLoadAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		
	ActionForward forword=new ActionForward();
		
	HttpSession session = request.getSession();
	 
//	
//		Object tbid = application.getAttribute("bdx");
//		Object tpbid = session.getAttribute("pdx");
//		
//		
//		if(tbid!=null){
//		int num = Integer.parseInt((String) tbid);
//		session.setAttribute("bid", num);
//		session.removeAttribute("bid");
//		}else if(tpbid!=null){
//			int num = Integer.parseInt((String) tpbid);
//			session.setAttribute("bid", num);
//			session.removeAttribute("pbid");
//		}
	
		forword.setUrl("fileuploadgo");
		
		return forword;
	}

}
